package com.zhu.service;

import com.zhu.mapper.UserMapper;
import com.zhu.pojo.User;
import com.zhu.pojo.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;
    public void register(User user){
        //userMapper.insert(user);
        userMapper.register(user);
    }

    public User login(User user){
        return userMapper.login(user);
    }

    public UserInfo getinfo(int id){return userMapper.getinfo(id);}
}
